import request from '@/utils/request'

// 查询【请填写功能名称】列表
export function getWinXinUser(userId) {
  return request({
    url: '/weixin/rela/list?userId=' + userId,
    method: 'get'
  })
}

// 查询【请填写功能名称】详细
export function getRela(weixinId) {
  return request({
    url: '/weixin/rela/' + weixinId,
    method: 'get'
  })
}

//微信绑定
export function bind(data) {
  return request({
    url: '/weixin/rela/bind',
    method: 'post',
    params: data
  })
}

//微信绑定
export function unBind(weixinId) {
  return request({
    url: '/weixin/rela/' + weixinId,
    method: 'delete'
  })
}


